package com.ruoyi.frame.base;

import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;

/**
 * xml 结果集封装
 * Created by 曾祥江 on 2018/7/23.
 * zengxiangjiang@umpay.com
 */
@XmlRootElement(name = "root")
public class ResultXml {

    private String retCode;

    private String retMsg;

    public ResultXml() { }

    public ResultXml(String retCode, String retMsg) {
        this.retCode = retCode;
        this.retMsg = retMsg;
    }

    @XmlElement
    public String getRetCode() {
        return retCode;
    }

    public void setRetCode(String retCode) {
        this.retCode = retCode;
    }

    @XmlElement
    public String getRetMsg() {
        return retMsg;
    }

    public void setRetMsg(String retMsg) {
        this.retMsg = retMsg;
    }

    @Override
    public String toString() {
        return "ResultXml{" +
                "retCode='" + retCode + '\'' +
                ", retMsg='" + retMsg + '\'' +
                '}';
    }
}
